package T4_call_run;



public class T1_call_run {
	public static void main(String[] args) {
		Thread thread = new Thread(new MyThread("lang1"));
		thread.start();  //
		thread.run();  //区别
	}
}

class MyThread implements Runnable {    
    private String name;    
    public MyThread(String name) {    
        this.name = name;    
    }    
    public void run() {    
        for (int i = 0; i < 5; i++) { 
        	try {
				Thread.sleep(100);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
            System.out.println(name + ": " + i);    
        }    
    }    
} 

